package com.kws.merchant.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kws.merchant.domain.OperationMaintain;
import com.kws.merchant.domain.po.MaintainPo;

/**
 * 运维-报修，抢修管理(OperationMaintain)表服务接口
 *
 * @author yxy
 * @since 2024-10-28 14:36:38
 */
public interface OperationMaintainService extends IService<OperationMaintain> {

    /**
     * 分页查询列表
     */
    Page<OperationMaintain> pageList(MaintainPo maintainPo);

    /**
     * 报修-抢修处理
     * @return
     */
    Object disposeMaintain(OperationMaintain operationMaintain);

    /**
     * 完成维修
     * @param id
     * @return
     */
    Object fulfilTask(Long id);

    /**
     * 查看
     * @param id
     * @return
     */
    OperationMaintain detailById(Long id);

    Double countWorkTypeBySql(Long companyId, int type, String sql);
}
